///*
// * File:   newtestclass.cpp
// * Author: guilhermemg
// *
// * Created on 05/12/2011, 15:26:19
// */
//
//#include "newtestclass.h"
//#include "AveragePixelIntensity.h"
//#include <cv.h>
//#include <opencv2/highgui/highgui_c.h>
//
//CPPUNIT_TEST_SUITE_REGISTRATION(newtestclass);
//
//newtestclass::newtestclass() {
//}
//
//newtestclass::~newtestclass() {
//}
//
//void newtestclass::setUp() {
//}
//
//void newtestclass::tearDown() {
//}
//
//void newtestclass::testCalcula() {
//    IplImage* white = cvLoadImage("/home/guilhermemg/Desktop/Imagens e Videos de Testes/whiteImage.png");
//    IplImage* black = cvLoadImage("/home/guilhermemg/Desktop/Imagens e Videos de Testes/blackImage.png");
//    AveragePixelIntensity averagePixelIntensity;// = new AveragePixelIntensity();
//    
//    int resultWhite = averagePixelIntensity.calcula(white);
//    int resultBlack = averagePixelIntensity.calcula(black);
//    CPPUNIT_ASSERT(resultWhite == 255);
//    CPPUNIT_ASSERT(resultBlack == 0);
//}
//
//int main() {
//    testCalcula();
//    return 0;
//}
//
